package com.id.controller;

import com.id.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author： yu.Tan
 * @Date: 2020/9/22 16:24
 * @Description:
 */
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("/snowflake")
    public List<Long> index(){
        return orderService.getIDBySnowFlake();
    }

}
